<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Article
 *
 * @ORM\Table(name="article", options={"comment":"文章表"})
 * @ORM\Entity()
 */
class Article
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="article_classify_id", type="integer", nullable=true, options={"comment"="文章分类ID", "default"=1})
     */
    private $article_classify_id;

    /**
     * @var string
     *
     * @ORM\Column(name="article_classify_name", type="string", length=45, options={"comment":"文章分类名称", "default"="跆拳道课堂"})
     */
    private $article_classify_name;

    /**
     * @var int
     *
     * @ORM\Column(name="sort_order", type="integer", nullable=true, options={"comment"="排序的序号", "default"=0})
     */
    private $sortOrder;
    
    /**
     * @var string
     *
     * @ORM\Column(name="title", type="string", length=45, options={"comment":"标题"})
     */
    private $title;

    /**
     * @var string
     *
     * @ORM\Column(name="introduction", type="string", length=255, nullable=true,  options={"comment":"文章简介"})
     */
    private $introduction;

    /**
     * @var string
     *
     * @ORM\Column(name="content", type="text",  options={"comment":"文章内容"})
     */
    private $content;

    /**
     * @var string
     *
     * @ORM\Column(name="thumb", type="string", length=255, nullable=true, options={"comment":"缩略图"})
     */
    private $thumb;

    /**
     * @var string
     *
     * @ORM\Column(name="thumb_path", type="string", length=255, nullable=true, options={"comment":"缩略图:绝对路径"})
     */
    private $thumb_path;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated_at", type="datetime", nullable=true, options={"comment":"更新时间"})
     */
    private $updatedAt;

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set articleClassifyId
     *
     * @param integer $articleClassifyId
     *
     * @return Article
     */
    public function setArticleClassifyId($articleClassifyId)
    {
        $this->article_classify_id = $articleClassifyId;

        return $this;
    }

    /**
     * Get articleClassifyId
     *
     * @return integer
     */
    public function getArticleClassifyId()
    {
        return $this->article_classify_id;
    }

    /**
     * Set articleClassifyName
     *
     * @param string $articleClassifyName
     *
     * @return Article
     */
    public function setArticleClassifyName($articleClassifyName)
    {
        $this->article_classify_name = $articleClassifyName;

        return $this;
    }

    /**
     * Get articleClassifyName
     *
     * @return string
     */
    public function getArticleClassifyName()
    {
        return $this->article_classify_name;
    }

    /**
     * Set sortOrder
     *
     * @param integer $sortOrder
     *
     * @return Article
     */
    public function setSortOrder($sortOrder)
    {
        $this->sortOrder = $sortOrder;

        return $this;
    }

    /**
     * Get sortOrder
     *
     * @return integer
     */
    public function getSortOrder()
    {
        return $this->sortOrder;
    }

    /**
     * Set title
     *
     * @param string $title
     *
     * @return Article
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set introduction
     *
     * @param string $introduction
     *
     * @return Article
     */
    public function setIntroduction($introduction)
    {
        $this->introduction = $introduction;

        return $this;
    }

    /**
     * Get introduction
     *
     * @return string
     */
    public function getIntroduction()
    {
        return $this->introduction;
    }

    /**
     * Set content
     *
     * @param string $content
     *
     * @return Article
     */
    public function setContent($content)
    {
        $this->content = $content;

        return $this;
    }

    /**
     * Get content
     *
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Set thumb
     *
     * @param string $thumb
     *
     * @return Article
     */
    public function setThumb($thumb)
    {
        $this->thumb = $thumb;

        return $this;
    }

    /**
     * Get thumb
     *
     * @return string
     */
    public function getThumb()
    {
        return $this->thumb;
    }

    /**
     * Set createdAt
     *
     * @param \DateTime $createdAt
     *
     * @return Article
     */
    public function setCreatedAt($createdAt)
    {
        $this->createdAt = $createdAt;

        return $this;
    }

    /**
     * Get createdAt
     *
     * @return \DateTime
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * Set updatedAt
     *
     * @param \DateTime $updatedAt
     *
     * @return Article
     */
    public function setUpdatedAt($updatedAt)
    {
        $this->updatedAt = $updatedAt;

        return $this;
    }

    /**
     * Get updatedAt
     *
     * @return \DateTime
     */
    public function getUpdatedAt()
    {
        return $this->updatedAt;
    }
}
